package org.example.backend.Module.School.Course.Pojo.DTO;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

@Data
@NoArgsConstructor
public class CourseGradeDTO {


    @NotNull(groups = {CourseSubjectDTO.OnUpdate.class}, message = "科目编码不能为空")
    @Null(groups = {CourseSubjectDTO.OnAdd.class}, message = "不可传递科目编码")
    @ApiModelProperty(value = "课程类型编号")
    private Long id;

    @ApiModelProperty(value = "类型名称")
    private String name;


    public static class OnUpdate {}

    public static class OnAdd {}
}
